﻿<%@ Control Language="C#" ClassName="PatDocumentoFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataDescripcionDocumento" runat="server" Text="Descripcion Documento:" AssociatedControlID="dataDescripcionDocumento" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataDescripcionDocumento" Text='<%# Bind("DescripcionDocumento") %>' MaxLength="100"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataDescripcionDocumento" runat="server" Display="Dynamic" ControlToValidate="dataDescripcionDocumento" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdTipoDocumento" runat="server" Text="Id Tipo Documento:" AssociatedControlID="dataIdTipoDocumento" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataIdTipoDocumento" DataSourceID="IdTipoDocumentoPatTipoDocumentoDataSource" DataTextField="DescripcionTipoDocumento" DataValueField="IdTipoDocumento" SelectedValue='<%# Bind("IdTipoDocumento") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatTipoDocumentoDataSource ID="IdTipoDocumentoPatTipoDocumentoDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataNumeroIniicial" runat="server" Text="Numero Iniicial:" AssociatedControlID="dataNumeroIniicial" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataNumeroIniicial" Text='<%# Bind("NumeroIniicial") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataNumeroIniicial" runat="server" Display="Dynamic" ControlToValidate="dataNumeroIniicial" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataNumeroIniicial" runat="server" Display="Dynamic" ControlToValidate="dataNumeroIniicial" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataNumeroFinal" runat="server" Text="Numero Final:" AssociatedControlID="dataNumeroFinal" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataNumeroFinal" Text='<%# Bind("NumeroFinal") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataNumeroFinal" runat="server" Display="Dynamic" ControlToValidate="dataNumeroFinal" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataNumeroFinal" runat="server" Display="Dynamic" ControlToValidate="dataNumeroFinal" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUltimoConsecutivoUsado" runat="server" Text="Ultimo Consecutivo Usado:" AssociatedControlID="dataUltimoConsecutivoUsado" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUltimoConsecutivoUsado" Text='<%# Bind("UltimoConsecutivoUsado") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUltimoConsecutivoUsado" runat="server" Display="Dynamic" ControlToValidate="dataUltimoConsecutivoUsado" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataUltimoConsecutivoUsado" runat="server" Display="Dynamic" ControlToValidate="dataUltimoConsecutivoUsado" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataActivo" runat="server" Text="Activo:" AssociatedControlID="dataActivo" /></td>
        <td>
					<asp:RadioButtonList runat="server" ID="dataActivo" SelectedValue='<%# Bind("Activo") %>' RepeatDirection="Horizontal"><asp:ListItem Value="True" Text="Si" Selected="True"></asp:ListItem><asp:ListItem Value="False" Text="No"></asp:ListItem></asp:RadioButtonList>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


